﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Threading.Tasks;

namespace backend.Models
{
    public class PwdModel
    {
        [Display(Name = "密码")]
        [Required(ErrorMessage = "{0}必填")]
        public string Pwd { get; set; }

        [Display(Name = "确认密码")]
        [Required(ErrorMessage = "{0}必填")]
        [Compare("Pwd", ErrorMessage = "{0}错误")]
        public string ConfirmPwd { get; set; }
    }
}
